package com.pan.tools;

public class ArrayTools {

    public static <T> Integer indexOf(T[] arr,T target){
        int len = arr.length;
        for (int i=0;i<len;i++){
            if (arr[i].equals(target)){
                return i;
            }
        }
        return null;
    }
}
